<div ng-include="sys_html('common/_header')"></div>
<div class='fui-page  fui-page-current article-list-page' ng-if="pagedata.op=='list'">
	<div class='fui-content' style="margin-bottom:2.5rem">
			<div class="fui-tab-scroll" style="background:#fff">
				<div ng-class="{'item':1,'on':pagedata.params.group_id == 0}" href="javascript:;" ng-click="pagedata.params.group_id = 0;tool.get_list('/news.list/list/',true)">全部分类</div>
				<div ng-repeat="item in pagedata.groups" ng-class="{'item':1,'on':pagedata.params.group_id == item.id}"  href="javascript:;" ng-click="pagedata.params.group_id = item.id;tool.get_list('/news.list/list/',true)">{{item.title}}</div>
			</div>
			<div class="fui-article-list template-2" style="padding:0.5rem">
				<div class="fui-list-group" style="margin-top:0">
					<div class="list-number" ng-repeat="item in pagedata.list">
							<a class="fui-list" style="align-items:stretch" href="javascript:;" ng-click="access_json('/news.list/detail/id='+item.id);">
								<div class="fui-list-inner">
									<div class="overflow-h2">{{item.title}}</div>
									<div class="gray overflow-h2">{{item.desc}}</div>
								</div>
								<div class="fui-list-media" style="margin-left:0.3rem;margin-right:0">
									<img class="round" style="width:5rem;height:4.5rem" ng-src="{{tomedia(item.picurl) || '../core/resource/images/nopic.jpg'}}">
								</div>
							</a>
						<div style="color:#999;font-size:0.6rem;padding:0 0.5rem;">
							<div style="border-bottom: 1px solid #f2f2f2;padding-bottom:0.3rem">
							<span class="round">发布时间：{{item.createtime}}</span>
							<span class="r-f"><i class="icon icon-browse" style="font-size:0.6rem"></i> {{item.readnum}}次浏览</span>
							</div>
						</div>
					</div>
				</div>  
			</div>
	    <div class="fui-message fui-message-popup in content-empty" ng-show="!pagedata.list" style="margin-top: 0; position: relative; height: auto; background: none;">
				<div class="icon ">
					<i class="icon jinyunicon icon-information"></i>
				</div>
				<div class="content">未找到文章~</div>
		</div>
		
	</div>
</div>

<div class='fui-page  fui-page-current article-index-page' ng-if="pagedata.op=='detail'">
	<div class='fui-content' style="margin-bottom:2.5rem">
		<div class="fui-article-page">
			<div class="fui-article-title">{{pagedata.item.title}}</div>
			<div class="fui-article-subtitle"><a onclick="$('#followewm').modal();">{{pagedata.item.author || pagedata.account.title}}</a> <span class="r-f">发布时间: {{pagedata.item.date || pagedata.item.createtime}}</span></div>
			<!-- 关注提示 -->
				<div class="fui-list-group external" ng-if="pagedata.item.account==1" onclick="$('#followewm').modal();">
					<div class="fui-list">
						<div class="fui-list-media">
							<img class="round" ng-src="{{tomedia(pagedata.account.logo) || '../core/resource/images/nopic.jpg'}}">
						</div>
						<div class="fui-list-inner">
							<div class="title">{{pagedata.account.title}}</div>
							<div class="subtitle">{{pagedata.account.desc}}</div>
						</div>
						<div class="fui-list-angle" style="width: 3rem; margin-right: 0;display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; flex-shrink: 0; flex-wrap: nowrap;">
							<div class="btn btn-sm btn-success" onclick="$('#followewm').modal();"><i class="fa fa-plus"></i> 关注</div>
						</div>
					</div>
				</div>
			<div class="fui-article-content" ng-bind-html="trust(pagedata.item.content)"></div>
			<div class="fui-article-subtitle">
				<div class="nav"><i class="fa fa-user"></i> {{pagedata.item.readnum}} </div>
				<div class="nav padding">
					<i class="fa fa-heart" style="color:red" ng-show="pagedata.like.like==1" ng-click="pagedata.item.likenum=pagedata.item.likenum-1;pagedata.like.like=0;post({'id':pagedata.like.id,'article_id':pagedata.item.id,'like':pagedata.like.like},'like','','ignore')"></i>
					<i class="fa fa-heart" style="color:gree" ng-show="pagedata.like.like!=1" ng-click="pagedata.item.likenum=pagedata.item.likenum+1;pagedata.like.like=1;post({'id':pagedata.like.id,'article_id':pagedata.item.id,'like':pagedata.like.like},'like','','ignore')"></i>
					<span>{{pagedata.item.likenum}}</span>
				</div>
			</div>
			
		</div>
		<div ng-show="pagedata.item.yingxiao && pagedata.item.advs && pagedata.item.advs.length>0">
				<div class="fui-line title" ng-show="pagedata.item.adtitle">
					<div class="text" style="background-color:#f4f4f4">{{pagedata.item.adtitle}}</div>
				</div>
				<div class="swipe">
					<div class="inner">
						<div data-transition="500" class="fui-swipe">
							<div class="fui-swipe-wrapper">
								<a ng-repeat="ad in pagedata.item.advs" ng-click="access_json(ad.url)" class="fui-swipe-item external">
										<img ng-src="{{tomedia(ad.img) || '../core/resource/images/nopic.jpg'}}">
								</a>
							</div>
							<div class='fui-swipe-page'></div>
						</div>
					</div>
				</div>
				<div class="fui-line subtitle link" ng-init="loubo()" ng-show="pagedata.item.admore">
					<a class="text external" href="{{pagedata.item.adurl || 'javascript:;'}}">{{pagedata.item.admore}}</a>
				</div>
		</div>
	</div>
</div>
	<div id="followewm"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
		<div class="modal-dialog" style="margin-bottom:216px">
				<div class="wap-qrcode-container">
					<button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
					<p class="example1">{{pagedata.account.title}}--智能全网平台！</p>
					<div class="wap-qrcode-image">
						<img ng-src="{{tomedia(pagedata.account.ewm) || '../core/resource/images/nopic.jpg'}}"/>
					</div>
					<p class="example1">长按二维码关注</p>
			</div>
			</div>
	</div>
<div ng-include="sys_html('common/_menu','','','jy_weishop')"></div>
<script>
scope.tool.get_list('jy_weishop/news.list/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop/news.list/list/');
}
</script>